package com.huohuzhihui.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.huohuzhihui.merchant.mapper.MerDouyinMapper;
import com.huohuzhihui.merchant.domain.MerDouyin;
import com.huohuzhihui.merchant.service.IMerDouyinService;

/**
 * 商户抖音配置信息Service业务层处理
 * 
 * @author huohuzhihui
 * @date 2021-04-03
 */
@Service
public class MerDouyinServiceImpl implements IMerDouyinService 
{
    @Autowired
    private MerDouyinMapper merDouyinMapper;

    /**
     * 查询商户抖音配置信息
     * 
     * @param id 商户抖音配置信息ID
     * @return 商户抖音配置信息
     */
    @Override
    public MerDouyin selectMerDouyinById(Long id)
    {
        return merDouyinMapper.selectMerDouyinById(id);
    }

    /**
     * 查询商户抖音配置信息列表
     * 
     * @param merDouyin 商户抖音配置信息
     * @return 商户抖音配置信息
     */
    @Override
    public List<MerDouyin> selectMerDouyinList(MerDouyin merDouyin)
    {
        return merDouyinMapper.selectMerDouyinList(merDouyin);
    }

    /**
     * 新增商户抖音配置信息
     * 
     * @param merDouyin 商户抖音配置信息
     * @return 结果
     */
    @Override
    public int insertMerDouyin(MerDouyin merDouyin)
    {
        return merDouyinMapper.insertMerDouyin(merDouyin);
    }

    /**
     * 修改商户抖音配置信息
     * 
     * @param merDouyin 商户抖音配置信息
     * @return 结果
     */
    @Override
    public int updateMerDouyin(MerDouyin merDouyin)
    {
        return merDouyinMapper.updateMerDouyin(merDouyin);
    }

    /**
     * 批量删除商户抖音配置信息
     * 
     * @param ids 需要删除的商户抖音配置信息ID
     * @return 结果
     */
    @Override
    public int deleteMerDouyinByIds(Long[] ids)
    {
        return merDouyinMapper.deleteMerDouyinByIds(ids);
    }

    /**
     * 删除商户抖音配置信息信息
     * 
     * @param id 商户抖音配置信息ID
     * @return 结果
     */
    @Override
    public int deleteMerDouyinById(Long id)
    {
        return merDouyinMapper.deleteMerDouyinById(id);
    }

    @Override
    public MerDouyin selectMerDouyinByDeptId(Long deptId) {
        return merDouyinMapper.selectMerDouyinByDeptId(deptId);
    }
}
